
for i in range(1,11):
    print(i)


name = "索博斯洛伊"
# 将字符串内容依次取出 无法定义循环条件 无法无限循环
for x in name:
    print(x)

name = "suobosiluoyi"
j = 0
for x in name:
    if x == "i":
        j += 1
print(f"字符串中有{j}个i")

# range语法 都不包括本身
for i in range(5):
    print(i)
for i in range(1,11):
    print(i)
for i in range(1,11,2):
    print(i)